package
{
import com.societyGames.codeExercise.CodeExercise;
import com.societyGames.robotExercises.RobotCodeExercise;
import com.societyGames.robotExercises.RobotSimulation;

public function isRobotLeftOfHome():Boolean
{
  var robotSimulation:RobotSimulation = RobotCodeExercise(CodeExercise.instance).simulation;
  return robotSimulation.robotPosition.x < robotSimulation.homePosition.x;
}
}
